<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="p" uri="http://www.springframework.org/tags/form"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css">

   .error {
   
     color: red;
    }

</style>
<title>RegistrationPage</title>
</head>
<body>
<p:form action="submitDetails.htm" method="get" modelAttribute="user" >
		<table>
			<tr>
				<td>First Name</td>
				<td><p:input path="firstName" /></td>
				<td><p:errors path="firstName"  cssClass="error"/></td>
			</tr>
			<tr>
				<td>Last Name</td>
				<td><p:input path="lastName" /></td>
				<td><p:errors path="lastName"  cssClass="error"/></td>
			</tr>
			<tr>
				<td>DOB</td>
				<td><p:input path="dob" /></td>
				<td><p:errors path="dob" cssClass="error" /></td>
			</tr>
			<tr>
				<td>Age</td>
				<td><p:input path="age" /></td>
				<td><p:errors path="age" cssClass="error" /></td>
			</tr>
			
			
			
			
			<tr>
				<td></td>
				<td><input type="submit" value="Submit"></td>
			</tr>


		</table>



	</p:form>
</body>
</html>